package com.javasm.gm;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.process.entity.ProcessTask;
import com.javasm.process.entity.TaskStatus;

import java.util.Collection;
import java.util.List;

public interface Gift2GoodsService extends IService<Gift2Goods> {

    Collection<Gift2Goods> listGift2GoodsApply(Gift2Goods obj);

    boolean submitApply(Gift2Goods obj);

    List<ProcessTask> getTaskByApplyOrderId(String orderId);

    List<ProcessTask> queryToDoTasks();

    List<ProcessTask> queryDosTasks(String result);

    boolean claim(String orderId);

    boolean approve(ProcessTask task);

    Gift2Goods getOneById(String id);
}

